/*
 * Copyright 2006 Yujin Kim
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.netexplode.jtunes.core;

public class Configuration {

	// ------------------ INJECTED ------------------- //

	// Display Title of each libraryRoot item
	private String[] libraryNames;

	// Array of Media Library Roots
	private String[] libraryRoots;

	// settings
	private Configuration settings;

	// Advertise the current host in the Bonjour network
	private boolean enableSharing;

	// search for itunes hosts
	private boolean searchShared;

	// whether to start the player in a separate thread
	private boolean threaded;

	public String[] getLibraryNames() {
		return this.libraryNames;
	}

	public void setLibraryNames(String[] libraryNames) {
		this.libraryNames = libraryNames;
	}

	public String[] getLibraryRoots() {
		return this.libraryRoots;
	}

	public void setLibraryRoots(String[] libraryRoots) {
		this.libraryRoots = libraryRoots;
	}

	public String getLibraryName() {
		return this.libraryNames[0];
	}

	public void setLibraryName(String libraryName) {
		libraryNames = new String[] { libraryName };
	}

	public String getLibraryRoot() {
		return this.libraryRoots[0];
	}

	public void setLibraryRoot(String libraryRoot) {
		libraryRoots = new String[] { libraryRoot };
	}

	public Configuration getSettings() {
		return this.settings;
	}

	public void setSettings(Configuration settings) {
		this.settings = settings;
	}

	public boolean isEnableSharing() {
		return this.enableSharing;
	}

	public void setEnableSharing(boolean enableSharing) {
		this.enableSharing = enableSharing;
	}

	public boolean isSearchShared() {
		return this.searchShared;
	}

	public void setSearchShared(boolean searchShared) {
		this.searchShared = searchShared;
	}

	public boolean isThreaded() {
		return this.threaded;
	}

	public void setThreaded(boolean threaded) {
		this.threaded = threaded;
	}
}
